package com.nand.library.base.utils;

/**
 * @name BlockDemo
 * @class name：com.nand.library.base.utils
 * @classdescribe
 * @anthor ljp
 * @time 2020/3/13 17:09
 */
public class Utils {

    /**
     *  @author ljp
     *  @time   17:09
     *  @describe 按照指定分隔符  截取字符串
     */
    public static String[] spitInfo(String str, String sign) {
        String[] split = str.split(sign);
        String[] urls = new String[split.length];
        for (int i = 0; i < split.length; i++) {
            urls[i] = split[i];
        }
        return urls;
    }
}
